package com.ruoyi.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.shopping.domain.MallProductFullReduction;
import com.ruoyi.shopping.domain.MallProductLadder;
import com.ruoyi.shopping.domain.MallSkus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author cws
 * @since
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MallProductByOneVo {

    private Long id;
    private String name;
    private String description;
    private BigDecimal price;
    private BigDecimal promotionPrice;
    private String serviceIds;
    private Long stock;
    private Long lowStock;
    private String status;
    /**
     * 品牌id
     */
    private Long brandId;
    /**
     * 商品所属地州ID，与regions表关联
     */
    private Long regionId;
    private Long giftPoint;
    private Long promotionType;
    // 满减集合
    private List<MallProductFullReduction> fullArr;
    // 阶梯价格集合
    private List<MallProductLadder> ladderArr;

    //    sku集合
    private List<MallSkus> skuList;

    private String defaultImg;

    private String albumPics;

    private String productHtml;



     /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


    private String brandName;
    private String regionName;
}

